package main

import "fmt"

func moveZeroes(nums []int) {

	l, r, len1 := 0, 0, len(nums)
	for r < len1 {
		if nums[r] != 0 {
			nums[l], nums[r] = nums[r], nums[l]
			l++
		}
		r++
	}
	fmt.Println(nums)

}

func main() {
	nums := []int{0, 1, 0, 3, 13}
	moveZeroes(nums)
}
